#include <stdlib.h>
#include <stdio.h>
#include <stdint.h> 
#include <errno.h>
#include <string.h>


#include <scamper_file.h>
     #include <scamper_addr.h>
     #include <scamper_list.h>
     #include <scamper_icmpext.h>
     #include <scamper_trace.h>
     #include <scamper_ping.h>
     #include <scamper_tracelb.h>
     #include <scamper_dealias.h>
     #include <scamper_neighbourdisc.h>
     #include <scamper_tbit.h>
     #include <scamper_sting.h>
     #include <scamper_sniff.h>


int main ()
{

	char * name;
	uint16_t types[] = {
             SCAMPER_FILE_OBJ_TRACE,
             SCAMPER_FILE_OBJ_PING,
           };
           scamper_file_t *in;
           scamper_file_filter_t *filter;
           scamper_trace_t *trace;
           scamper_ping_t *ping;
           uint16_t type;
           void *data;

           if((filter = scamper_file_filter_alloc(types, 2)) == NULL) {
             fprintf(stderr, "could not allocate filter\n");
             return -1;
           }

           if((in = scamper_file_open(name, 'r', NULL)) == NULL) {
             fprintf(stderr, "could not open %s: %s\n", name, strerror(errno));
             return -1;
           }

           while(scamper_file_read(in, filter, &type, &data) == 0) {

             
             
           }
scamper_file_close(in);
           scamper_file_filter_free(filter);

	return 0;

}
